package com.ytjj.qmyx.mall.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 团配置信息表id
 */
public class ProductGroupBuyInfo implements Serializable {
    /**
     * 团配置信息表id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 团名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 几人成团
     *
     * @mbg.generated
     */
    private Integer minPerson;

    /**
     * 是否包含机器人 1-使用 0-不使用
     *
     * @mbg.generated
     */
    private Byte virtualUse;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 成团天数
     *
     * @mbg.generated
     */
    private Short processDay;

    /**
     * 创建人
     *
     * @mbg.generated
     */
    private Integer createUser;

    /**
     * 团购价
     *
     * @mbg.generated
     */
    private BigDecimal groupPrice;

    /**
     * 状态 1-启用 0-未启用
     *
     * @mbg.generated
     */
    private Byte status;

    /**
     * 所属商品id
     *
     * @mbg.generated
     */
    private Integer productId;

    /**
     * 直接购买价
     *
     * @mbg.generated
     */
    private BigDecimal directPrice;

    /**
     * 分成比例
     */
    private String ratio;

    /**
     * 虚拟用户数
     */
    private Integer inventedNum;

    /**
     * 分成方式 1-比例分成 2-固定分成
     */
    private Integer divideWay;

    /**
     * 固定分成金额
     */
    private BigDecimal fixedPrice;


    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMinPerson() {
        return minPerson;
    }

    public void setMinPerson(Integer minPerson) {
        this.minPerson = minPerson;
    }

    public Byte getVirtualUse() {
        return virtualUse;
    }

    public void setVirtualUse(Byte virtualUse) {
        this.virtualUse = virtualUse;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Short getProcessDay() {
        return processDay;
    }

    public void setProcessDay(Short processDay) {
        this.processDay = processDay;
    }

    public Integer getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Integer createUser) {
        this.createUser = createUser;
    }

    public BigDecimal getGroupPrice() {
        return groupPrice;
    }

    public void setGroupPrice(BigDecimal groupPrice) {
        this.groupPrice = groupPrice;
    }

    public Byte getStatus() {
        return status;
    }

    public void setStatus(Byte status) {
        this.status = status;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public BigDecimal getDirectPrice() {
        return directPrice;
    }

    public void setDirectPrice(BigDecimal directPrice) {
        this.directPrice = directPrice;
    }

    public String getRatio() {
        return ratio;
    }

    public void setRatio(String ratio) {
        this.ratio = ratio;
    }

    public Integer getInventedNum() {
        return inventedNum;
    }

    public void setInventedNum(Integer inventedNum) {
        this.inventedNum = inventedNum;
    }

    public Integer getDivideWay() {
        return divideWay;
    }

    public void setDivideWay(Integer divideWay) {
        this.divideWay = divideWay;
    }

    public BigDecimal getFixedPrice() {
        return fixedPrice;
    }

    public void setFixedPrice(BigDecimal fixedPrice) {
        this.fixedPrice = fixedPrice;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", minPerson=").append(minPerson);
        sb.append(", virtualUse=").append(virtualUse);
        sb.append(", createTime=").append(createTime);
        sb.append(", processDay=").append(processDay);
        sb.append(", createUser=").append(createUser);
        sb.append(", groupPrice=").append(groupPrice);
        sb.append(", status=").append(status);
        sb.append(", productId=").append(productId);
        sb.append(", directPrice=").append(directPrice);
        sb.append(", ratio=").append(ratio);
        sb.append(", inventedNum=").append(inventedNum);
        sb.append(", divideWay=").append(divideWay);
        sb.append(", fixedPrice=").append(fixedPrice);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}